package com.ibiaoke.goods.dao;

import com.ibiaoke.common.base.BaseDao;
import com.ibiaoke.goods.entity.GoodsUnit;
import com.ibiaoke.goods.entity.GoodsUnitExample;
import com.ibiaoke.goods.mapper.GoodsUnitMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Dragon
 * @date 2018/5/16/17:07;
 */
@Repository
public class GoodsUnitDao extends BaseDao<GoodsUnit,GoodsUnitExample,Integer,GoodsUnitMapper> {
    @Autowired
    private GoodsUnitMapper goodsUnitMapper;

    @Override
    public GoodsUnitMapper getMapper() {
        return goodsUnitMapper;
    }

    public List<GoodsUnit> listGoodsUnit() {
        GoodsUnitExample example = new GoodsUnitExample();

        return goodsUnitMapper.selectByExample(example);
    }
}
